    <div class="layui-card layadmin-header" style="height: auto;">
        <div class="layui-breadcrumb" lay-filter="breadcrumb">
            <a lay-href="">概览</a>
            <a><cite>接入数据</cite></a>
        </div>
    </div>

    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-btn layui-btn-add" style="margin:10px">新增</div>
            <table id="datatable" lay-filter="datatable"></table>
            <script type="text/html" id="toolbar">
                <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event="copy">复制</button>
                <button type="button" class="layui-btn layui-btn-xs layui-btn-warm"  lay-event="edit">修改</button></button>
                <button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</button>
            </script>
        </div>
    </div>

  

    <script>
    layui.use(['dataSwitch'], layui.factory('dataSwitch')).use(['admin', 'upload','contlist', 'table', 'setter','element'], function(){
        var $ = layui.$
        ,admin = layui.admin
        ,view = layui.view
        ,table = layui.table
        ,form = layui.form
        ,setter = layui.setter,
        element = layui.element;

        $('.layui-btn-add').on('click',function(){
            admin.req({
                url:setter.url + '/serialName/inster',
                data:{
                    userName:layui.data('userInfo').data.exname
                },
                method:'post',
                done:function(res){
                    layer.msg(res.message)
                    layui.table.reload('datatable')
                }
            })
        })

    

    });
    </script>

